/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author 13754
 * @create 2023/11/22
 * @since 1.0.0
 */
package com.mengniu.commerce.collect.controller;

import com.mengniu.commerce.collect.service.WmMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
* @Description: 会员模块 (测试用)
* @Param:
* @return:
* @Author: zfw
* @Date: 2023/11/29
* @Date: 18:01
*/
@RestController
@RequestMapping("/member")
public class MemberController {
    @Autowired
    private WmMemberService wmMemberService;

    /***
    * @Description: 存量会员创建
    * @Param: [bosId]
    * @return: void
    * @Author: zfw
    * @Date: 2023/12/3
    * @Date: 17:55
    */
    @GetMapping("/createStockMember")
    public void createStockMember(@RequestParam("bosId") Long bosId)  {
        wmMemberService.createStockMember(bosId);
    }

    /***
     * @Description: 会员创建(单个)
     * @Param: [bosId]
     * @Param: list 调用蒙牛
     * @return: void
     * @Author: zfw
     * @Date: 2023/12/3
     * @Date: 17:55
     */
    @GetMapping("/createMemberByMsg")
    public void createMemberByMsg(@RequestParam("bosId") Long bosId, @RequestParam("list") List<String> list)  {
        wmMemberService.createMemberByMsg(bosId,list);
    }

    /***
     * @Description: 会员修改
     * @Param: [bosId]
     * @return: void
     * @Author: zfw
     * @Date: 2023/12/3
     * @Date: 17:55
     */
    @GetMapping("/modifyMemberByMessage")
    public void modifyMemberByMessage(@RequestParam("bosId") Long bosId, @RequestParam("list") List<String> list)  {
        wmMemberService.modifyMemberByMessage(bosId,list);
    }


}
